<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		
		<style type="text/css">
			[v-cloak]{
				display: none;
			}
		</style>
	</head>
	<body>
		<h3>姓名、年龄、爱好、女朋友、豪车</h3>
		<div id="app" v-cloak>
			{{name}}{{age}}
			<hr>
			{{hobby}}、{{hobby[0]}}、{{hobby[hobby.length-1]}}
			<hr>
			{{girl.name}}、{{girl.age}}、{{girl}}
			<hr>
			{{cars[0].name}}、{{cars[0].color}}
			{{cars[2].name}}、{{cars[2].color}} <br />
			{{cars}}
		</div>
	</body>
	
	<script type="text/javascript">
		new Vue({
			el:"#app",
			data:{
				msg:"hello VueJS!",
				name:"陈强",
				age:18,
				hobby:["乒乓球","爬山","唱歌"],
				girl:{
					name:"李梅",
					age:16
				},
				cars:[
					 {name:"劳斯莱斯",color:"white"},
					 {name:"奔驰",color:"red"},
					 {name:"宝马",color:"green"}
			    ]
			}
		});
	</script>
</html>
